package lab02.test11;

public class Rectangle implements Printx{
    int side1;
    int side2;
    int proportion;
    int perimeter;

    public int getPerimeter() {
        return perimeter=(side1+side2)*2;
    }

    public int getProportion() {
        return  proportion=side1*side2;
    }

    public void printMyWay(){
        System.out.println("边长1："+side1);
        System.out.println("边长2："+side2);
        System.out.println("周长："+getPerimeter());
        System.out.println("面积："+getProportion());
    }

}
